<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0037)http://localhost:7001/cerp/showAllOrg -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8"><LINK 
href="showAllOrg.files/style.htm" rel=stylesheet><LINK 
href="showAllOrg.files/content.htm" rel=stylesheet>

<script type="text/javascript">
		    var djConfig = {
				isDebug:true,
				parseOnLoad:true,
				usePlainJson:true
		    };
		</script>
		 
		<script type="text/javascript" src="dojo/dojo/dojo.js"></script>
		<script type="text/javascript" src="dojo/dijit/dijit.js"></script>

		<script type="text/javascript">
    		dojo.require("dijit.form.Button");
    		dojo.require("dojo.rpc.JsonService");    	
    	</script>
		
		<script language="JavaScript" type="text/javascript">
			//获得服务
			var orderPlanImportService = new dojo.rpc.JsonService("box/alloc/OrderPlanImportService?smd");
			var makeBoxAllocFormService = new dojo.rpc.JsonService("box/alloc/MakeBoxAllocFormService?smd");
			
			//orderPlanID
			var orderPlanID;
			var orderPlan;
			//未处理完的订舱委托单ID
			var unDoneCommList;
			//舱位分配清单
			var boxAllocForm;
			
			//页面加载时的一些操作
			dojo.addOnLoad(load);
			function load() {
				orderPlanImportService.getOrderPlanID().addCallback(function (res) {
				//alert(res);
					orderPlanID = res;
					makeBoxAllocFormService.newBoxAllocForm(orderPlanID);
					makeBoxAllocFormService.getUnDoneComm(orderPlanID).addCallback(function (result) {
						unDoneCommList = result;
						console.dir(unDoneCommList);
					});
					show_order_plan_details();
				});	
			}
			//获得上个页面传来的参数id
			function getPara(name) {
				var uri = window.location.search;
				var re = new RegExp("" + name + "=([^&?]*)", "ig");
				return ((uri.match(re))?(uri.match(re)[0].substr(name.length+1)):null);
			}
			//显示id为orderPlanID的预配计划明细
			function show_order_plan_details() {
				orderPlanImportService.getOrderPlan(orderPlanID).addCallback(function (result) {
					//console.dir(result);
					orderPlan = result;
					
					var text = "";
					var smallBox = result.totalBox - result.bigBox;

					text = text + "<table width='700' border='0' cellpadding='0' cellspacing='0'>";
					text = text + "    <tr height='80'>";
					text = text + "        <td class='ctitle'><input class='billtitle' value='" + result.ID + "号预配计划明细' size='40'></td>";
					text = text + "    </tr>";
					text = text + "</table>";
					text = text + "<table width='760' border='0' cellpadding='0' cellspacing='0'>";
					text = text + "    <tr>";
					text = text + "        <td class='ctitle'>上次更改日期：<input type='text' name='Bill_date' value='2009-01-01' size='10' class='linputrl'></td>";
					text = text + "        <td class='ctitle'>第<input type='text' name='Bill_code' value='" + result.ID + "' size='19' class='linputrl'>号</td>";
					text = text + "        <td class='rtitle'>单据类型</td>";
					text = text + "        <td class='ltitle'><select name='Bill_type'><option value='I' selected='selected'>初始化单据</option></select></td>";
					text = text + "    </tr>";
					text = text + "</table>";
			
					text = text + "    <table class='titlearea' width='760' border='0' cellpadding='2' cellspacing='1' colspan='8'>";
					text = text + "        <tr>";
					text = text + "            <td class='rtitle' width='95'>*初始化日期：</td><td class='ltitle'><input type='text' name='Init_date' value='2009-01-01' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>*船公司编码：</td><td class='ltitle'><input type='text' value='" + result.shipSchedule.shipInfo.shipComInfo.id + "' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>*船公司名称：</td><td class='ltitle'><input type='text' value='" + result.shipSchedule.shipInfo.shipComInfo.shortTitle + "' size='10' class='linput'></td>";
					text = text + "        </tr>";
					text = text + "        <tr>";
					text = text + "            <td class='rtitle' width='95'>船编码：</td><td class='ltitle'><input type='text' value='" + result.shipSchedule.shipInfo.id + "' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>船名称：</td><td class='ltitle'><input type='text' value='" + result.shipSchedule.shipInfo.name + "' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>航次：</td><td class='ltitle'><input type='text' value='" + result.shipSchedule.id + "' size='10' class='linput'></td>";
					text = text + "        </tr>";
					text = text + "        <tr>";
					text = text + "            <td class='rtitle' width='95'>总箱数：</td><td class='ltitle'><input type='text' value='" + result.totalBox + "' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>大箱数：</td><td class='ltitle'><input type='text' value='" + result.bigBox + "' size='10' class='linput'></td>";
					text = text + "            <td class='rtitle' width='95'>小箱数：</td><td class='ltitle'><input type='text' value='" + smallBox + "' size='10' class='linput'></td>";
					text = text + "        </tr>";
					text = text + "    </table>";

					text = text + "<table width='760'>";
					text = text + "    <tr>";
					text = text + "        <td class='rtitle'>";
					text = text + "            <font face='Webdings' class='redcolor'>4</font><a id='make_box_alloc_form_button' href='#' onClick='make_box_alloc_form()'>缮制舱位分配清单</a>";
					text = text + "            <font face='Webdings' class='redcolor'>4</font><a href='javascript:close_order_plan_details()'>关闭</a>";
					text = text + "            <font face='Webdings' class='redcolor'>4</font><a href='javascript:go_back()'>返回</a>";
					text = text + "        </td>";
					text = text + "    </tr>";
					text = text + "</table>";

					document.getElementById("order_plan_details").innerHTML = text;
				});
			}
			//返回前一页
			function go_back() {
				window.opener.focus();
				window.close();
			}
			//缮制舱位分配清单
			function make_box_alloc_form() {
				makeBoxAllocFormService.getBoxAllocForm(orderPlanID).addCallback(function (result) {
					console.dir(result);
					boxAllocForm = result;
					
					var text = "";

					text = text + "<table width='760'><tr><td align='left'>";
					text = text + "<a href=\"#\" onClick=\"show_big_box_alloc_details()\"><font id='ctrInfFont1'>大箱分配情况</font></a> <a href=\"#\" onClick=\"show_small_box_alloc_details()\"><font id='ctrInfFont1'>小箱分配情况</font></a> <a href=\"#\" onClick=\"show_box_constraints()\"><font id='ctrInfFont1'>受限信息</font></a>";
					text = text + "</td></tr></table>";
					text = text + "<div id=\"box_alloc_details\">";
					text = text + "    <table width='760' align='center' cellpadding='2' cellspacing='1' class='gridarea'>";
					text = text + "        <tr><td valign='middle' class='gridtitletd'>大箱总数：" + orderPlan.bigBox + "</td><td valign='middle' class='gridtitletd'>已订大箱数：" + result.boxAllocDetails.orderedBigNum + "</td><td valign='middle' class='gridtitletd'>通过大箱数：" + result.boxAllocDetails.passedBigNum + "</td><td valign='middle' class='gridtitletd'>剩余大箱数：" + parseInt(orderPlan.bigBox - result.boxAllocDetails.orderedBigNum) + "</td></tr>";
					text = text + "    </table>";
					text = text + "</div>";

					text = text + "<div id=\"alloc_details\">";
					text = text + "<table width='760' align='center' cellpadding='2' cellspacing='1' class='tabline'>";
					text = text + "    <tr align='left'><td><a href=\"#\" onClick=\"show_alloc_details()\">分配详情</a> <a href=\"#\" onClick=\"alert(\"暂时无该功能！\")\">拼箱计划</a></td></tr>";
					text = text + "</table>";
					text = text + "    <table id='alloc_details_table' width='760' align='center' cellpadding='2' cellspacing='1' class='tabline'>";
					text = text + "        <tr><td valign='middle' class='gridtitletd'>操作</td><td valign='middle' class='gridtitletd'>委托单编号</td><td valign='middle' class='gridtitletd'>类型</td><td valign='middle' class='gridtitletd'>货主名称</td><td valign='middle' class='gridtitletd'>分配大箱数</td><td valign='middle' class='gridtitletd'>分配小箱数</td><td valign='middle' class='gridtitletd'>状态</td></tr>";
					//先显示出已存在的分配详情
					for (var i in result.allocDetails.list) {
						var item = result.allocDetails.list[i];
						var rowNo = parseInt(i) + 1;
						
						text = text + "<tr class='gridtreven'>";
						text = text + "<td align='center' width='100'><a href='#' onClick=\"book_box(" + item.id + ")\"><img alt='订舱' src='showAllOrg.files/cus.gif' border='0'/></a>";
						text = text + "<a href='#' onClick='alert('显示订舱委托单明细的函数')'><img alt='查看订舱委托单明细' src='showAllOrg.files/view.gif' border='0'/></a>";
						if (item.status == 4) {      //状态为订舱成功，则不能删除
							text = text + " <a href='#' onClick=\"alert('查看配舱回单的函数！')\"><img alt='查看配舱回单明细' src='showAllOrg.files/view.gif' border='0'/></a>";
						} else {
							text = text + " <a href='#' onClick=\"delete_alloc_details(" + rowNo + ", " + item.id + ")\"><img alt='删除' src='showAllOrg.files/delete.gif' border='0' /></a>";
						}
						text = text + " <a href='#' id='edit_" + rowNo + "' onClick=\"edit_alloc_details(" + rowNo + ", " + item.id + ")\"><img alt='编辑' src='showAllOrg.files/edit.gif' border='0' /></a></td>";
						text = text + "<td align='center' width='100' id='comm_" + rowNo + "'>" + item.commission.id + "</td>";
						if (item.commission.LCL) {
							text = text + "<td align='center' width='50' id='type_" + rowNo + "'>拼箱</td>";
						} else {
							text = text + "<td align='center' width='50' id='type_" + rowNo + "'>整箱</td>";
						}
						text = text + "<td align='center' width='150' id='customer_" + rowNo + "'>" + item.commission.sender.name + "</td>";
						text = text + "<td align='center' width='100' id='big_" + rowNo + "'>" + item.bigNum + "</td>";
						text = text + "<td align='center' width='100' id='small_" + rowNo + "'>" + item.smallNum + "</td>";
						if (item.status == 1) {
							text = text + "<td align='center' width='100' id='status_" + rowNo + "'>等待回应</td>";
						} else if (item.status == 2) {
							text = text + "<td align='center' width='100' id='status_" + rowNo + "'>未制十联单</td>";
						} else if (item.status == 3) {
							text = text + "<td align='center' width='100' id='status_" + rowNo + "'>已制十联单</td>";
						} else if (item.status == 4) {
							text = text + "<td align='center' width='100' id='status_" + rowNo + "'>订舱成功</td>";
						}
						text = text + "</tr>";
					}
					//再显示添加新分配详情的行
					text = text + "        <tr class='gridtreven'><td align='center' width='100'><a href=\"#\" onClick=\"add_alloc_details()\"><img alt='添加' src='showAllOrg.files/add.gif' border='0'/></a> <a href=\"#\" onClick=\"alert('这是重置功能！')\"><img alt='查询' src='showAllOrg.files/reset.gif' border='0'/></a></td><td align='center' width='100'><select id='comm_id' onChange=\"show_selected_comm_details()\"><option selected value='null' >none</option>";
					for (var i in unDoneCommList.list) {
						text = text + "<option value='" + unDoneCommList.list[i].id + "'>" + unDoneCommList.list[i].id + "</option>";
					}
					text = text + "</select></td><td align='center' width='50'><input class='linput' type='text' id='type' name='type' size='15'></td><td align='center' width='150'><input class='linput' type='text' id='customer' name='customer' size='15'></td><td align='center' width='100'><input class='linput' type='text' id='big' name='big' size='15'></td><td align='center' width='100'><input class='linput' type='text' id='small' name='small' size='15'></td><td width='100'></td></tr>";
					text = text + "    </table>";
					text = text + "</div>";

					document.getElementById("box_alloc_form").innerHTML = text;
				});
				
				//变换按钮
				var button = document.getElementById("make_box_alloc_form_button");
				button.innerHTML = "关闭舱位分配清单";
				button.setAttribute("onClick", "close_box_alloc_form()");
				button.id = "close_alloc_form_button";
			}
			//关闭舱位分配清单
			function close_box_alloc_form() {
				//变换按钮
				var button = document.getElementById("close_alloc_form_button");
				button.innerHTML = "缮制舱位分配清单";
				button.setAttribute("onClick", "make_box_alloc_form()");
				button.id = "make_box_alloc_form_button";
				
				document.getElementById("box_alloc_form").innerHTML = "";
			}
			//关闭预配计划明细
			function close_order_plan_details() {
				document.getElementById("order_plan_details").innerHTML = "";
			}
			//添加分配详情
			function add_alloc_details() {
				makeBoxAllocFormService.putAllocDetails(document.getElementById("comm_id").value,
						document.getElementById("big").value,
						document.getElementById("small").value,
						orderPlanID).addCallback(function (result) {

				//将新加入的分配详情显示出来
				var tbl = document.getElementById('alloc_details_table');
				var lastRow = tbl.rows.length;
				var row = tbl.insertRow(lastRow - 1);
				row.className = "gridtreven";
				var currow = lastRow - 1;
				
				//操作
				var cellOp = row.insertCell(0);
				cellOp.align = "center";
				cellOp.width = "100";
				cellOp.innerHTML = "<a href='#' onClick=\"book_box(" + result + ")\"><img alt='订舱' src='showAllOrg.files/cus.gif' border='0'/></a> <a href='#' onClick='alert('显示订舱委托单明细的函数')'><img alt='查看订舱委托单明细' src='showAllOrg.files/view.gif' border='0'/></a> <a href='#' onClick=\"delete_alloc_details(" + currow + ", " + result + ")\"><img alt='删除' src='showAllOrg.files/delete.gif' border='0' /></a> <a href='#' id='edit_" + currow + "' onClick=\"edit_alloc_details(" + currow + ", " + result + ")\"><img alt='编辑' src='showAllOrg.files/edit.gif' border='0' /></a>";
				//订舱委托单编号
				var cellComm = row.insertCell(1);
				cellComm.align = "center";
				cellComm.width = "100";
				cellComm.id = "comm_" + currow;
				cellComm.innerHTML = document.getElementById("comm_id").value;
				//类型
				var cellType = row.insertCell(2);
				cellType.align = "center";
				cellType.width = "50";
				cellType.id = "type_" + currow;
				cellType.innerHTML = document.getElementById("type").value;
				//货主
				var cellCustomer = row.insertCell(3);
				cellCustomer.align = "center";
				cellCustomer.width = "150";
				cellCustomer.id = "customer_" + currow;
				cellCustomer.innerHTML = document.getElementById("customer").value;
				//大箱数
				var cellBig = row.insertCell(4);
				cellBig.align = "center";
				cellBig.width = "100";
				cellBig.id = "big_" + currow;
				cellBig.innerHTML = document.getElementById("big").value;
				//小箱数
				var cellSmall = row.insertCell(5);
				cellSmall.align = "center";
				cellSmall.width = "100";
				cellSmall.id = "small_" + currow;
				cellSmall.innerHTML = document.getElementById("small").value;
				//状态
				var cellStatus = row.insertCell(6);
				cellStatus.align = "center";
				cellStatus.width = "100";
				cellStatus.id = "status_" + currow;
				cellStatus.innerHTML = "等待回应";

				//去掉不符合条件的comm
				for (var i in unDoneCommList.list) {
					if (document.getElementById("comm_id").value == unDoneCommList.list[i].id) {
						makeBoxAllocFormService.getUnAllocBoxNum(unDoneCommList.list[i], "40GP").addCallback(function (result) {
							if (result == 0) {
								makeBoxAllocFormService.getUnAllocBoxNum(unDoneCommList.list[i], "20GP").addCallback(function (result) {
									if (result == 0) {
										document.getElementById("comm_id").remove(document.getElementById("comm_id").selectedIndex);
										show_selected_comm_details();
									} else {
										//选中默认选项
										document.getElementById("comm_id").options[0].selected = true;
										show_selected_comm_details();
									}
								});
							} else {
								//选中默认选项
								document.getElementById("comm_id").options[0].selected = true;
								show_selected_comm_details();
							}
						});
						break;
					}
				}});				
			}
			//显示分配详情
			function show_alloc_details() {
				alert("这是显示分配详情的函数！");
			}
			//显示选中的comm详情
			function show_selected_comm_details() {
				var selected = document.getElementById("comm_id").value;
				if (selected == "null") {
					document.getElementById("type").value = "";
					document.getElementById("customer").value = "";
					document.getElementById("big").value = "";
					document.getElementById("small").value = "";
				} else {
					for (var i in unDoneCommList.list) {
						if (selected == unDoneCommList.list[i].id) {
							if (unDoneCommList.list[i].LCL) {
								document.getElementById("type").value = "拼箱";
							} else {
								document.getElementById("type").value = "整箱";
							}
							document.getElementById("customer").value = unDoneCommList.list[i].sender.name;
							makeBoxAllocFormService.getUnAllocBoxNum(unDoneCommList.list[i], "40GP").addCallback(function (result) {
								document.getElementById("big").value = result;
							});
							makeBoxAllocFormService.getUnAllocBoxNum(unDoneCommList.list[i], "20GP").addCallback(function (result) {
								document.getElementById("small").value = result;
							});
							break;
						}
					}
				}
			}
			//显示大箱分配详情
			function show_big_box_alloc_details() {
				makeBoxAllocFormService.getBoxAllocForm(orderPlanID).addCallback(function (result) {
					boxAllocForm = result;
					var text = "";
					
					text = text + "<table width='760' align='center' cellpadding='2' cellspacing='1' class='gridarea'>";
					text = text + "    <tr><td valign='middle' class='gridtitletd'>大箱总数：" + orderPlan.bigBox + "</td><td valign='middle' class='gridtitletd'>已订大箱数：" + boxAllocForm.boxAllocDetails.orderedBigNum + "</td><td valign='middle' class='gridtitletd'>通过大箱数：" + boxAllocForm.boxAllocDetails.passedBigNum + "</td><td valign='middle' class='gridtitletd'>剩余大箱数：" + parseInt(orderPlan.bigBox - boxAllocForm.boxAllocDetails.orderedBigNum) + "</td></tr>";
					text = text + "</table>";

					document.getElementById("box_alloc_details").innerHTML = text;
				});
			}
			//显示小箱分配详情
			function show_small_box_alloc_details() {
				makeBoxAllocFormService.getBoxAllocForm(orderPlanID).addCallback(function (result) {
					boxAllocForm = result;
					var text = "";
					
					text = text + "<table width='760' align='center' cellpadding='2' cellspacing='1' class='gridarea'>";
					text = text + "    <tr><td valign='middle' class='gridtitletd'>小箱总数：" + parseInt(orderPlan.totalBox - orderPlan.bigBox) + "</td><td valign='middle' class='gridtitletd'>已订小箱数：" + boxAllocForm.boxAllocDetails.orderedSmallNum + "</td><td valign='middle' class='gridtitletd'>通过小箱数：" + boxAllocForm.boxAllocDetails.passedSmallNum + "</td><td valign='middle' class='gridtitletd'>剩余小箱数：" + parseInt(orderPlan.totalBox - orderPlan.bigBox - boxAllocForm.boxAllocDetails.orderedSmallNum) + "</td></tr>";
					text = text + "</table>";
	
					document.getElementById("box_alloc_details").innerHTML = text;
				});
			}
			//显示受限信息
			function show_box_constraints() {
				//console.dir(orderPlan);
				if (orderPlan.boxConstraints.GP20 == -1 
						&& orderPlan.boxConstraints.GP40 == -1 
						&& orderPlan.boxConstraints.HQ40 == -1) {
					document.getElementById("box_alloc_details").innerHTML = "无受限信息";
				} else {
					var text = "";
				
					text = text + "<table width='760' align='center' cellpadding='2' cellspacing='1' class='gridarea'>";
					text = text + "    <tr><td valign='middle' class='gridtitletd'>20GP：</td><td valign='middle' class='gridtitletd'>" + orderPlan.boxConstraints.GP20 + "</td><td valign='middle' class='gridtitletd'>40GP：</td><td valign='middle' class='gridtitletd'>" + orderPlan.boxConstraints.GP40 + "</td><td valign='middle' class='gridtitletd'>HQ40：</td><td valign='middle' class='gridtitletd'>" + orderPlan.boxConstraints.HQ40 + "</td></tr>";
					text = text + "</table>";

					document.getElementById("box_alloc_details").innerHTML = text;
				}				
			}
			//删除分配清单
			function delete_alloc_details(r, id) {
				var yes = confirm('确定删除该条记录？');
				if (yes) {
					//首先删除数据库中的记录
					makeBoxAllocFormService.deleteAllocDetails(id);

					//取得删除掉的commId
					var comm_r = "comm_" + r;
					var commId = document.getElementById(comm_r).innerHTML;
					//再删除表格中的行
					document.getElementById("alloc_details_table").deleteRow(r);

					//将删除的记录的comm_id变为可选
					var commNum = document.getElementById("comm_id").length;
					var exist = 0;
					for (var i = 0; i < commNum; i++) {
						if (document.getElementById("comm_id").options[i].value == commId) {
							exist = 1;
							break;
						}
					}
					if (!exist) {
						var option = document.createElement("option");
						option.text = commId;
						option.value = commId;
						document.getElementById("comm_id").add(option, null);
					}

					//显示最新的分配详情
					var text = document.getElementById("box_alloc_details").innerHTML;
					if (text.indexOf('大') != -1) {
						show_big_box_alloc_details();
					} else if (text.indexOf('小') != -1) {
						show_small_box_alloc_details();
					} else {
						show_box_constraints();
					}
				}
			}
			//编辑分配清单
			function edit_alloc_details(rowNo, id) {
				//将编辑按钮变为更新按钮
				var edit = document.getElementById("edit_" + rowNo);
				edit.id = "update_" + rowNo;
				edit.setAttribute("onClick", "update_alloc_details(" + rowNo + ", " + id + ")");
				edit.innerHTML = "更新";
				
				var big = document.getElementById("big_" + rowNo).innerHTML;
				var small = document.getElementById("small_" + rowNo).innerHTML;
				var status = document.getElementById("status_" + rowNo).innerHTML;

				document.getElementById("big_" + rowNo).innerHTML = "<input class='linput' type='text' id='input_big_" + rowNo + "'>";
				document.getElementById("input_big_" + rowNo).value = big;
				document.getElementById("small_" + rowNo).innerHTML = "<input class='linput' type='text' id='input_small_" + rowNo + "'>";
				document.getElementById("input_small_" + rowNo).value = small;
				document.getElementById("status_" + rowNo).innerHTML = "<select id='select_" + rowNo + "'><option value='等待回应'>等待回应</option><option value='未制十联单'>未制十联单</option><option value='已制十联单'>已制十联单</option><option value='订舱成功'>订舱成功</option></select>";
				var selected;
				if (status == "等待回应") {
					selected = 0;
				} else if (status == "未制十联单") {
					selected = 1;
				} else if (status == "已制十联单") {
					selected = 2;
				} else {
					selected = 3;
				}
				document.getElementById("select_" + rowNo).options[selected].selected = true;
			}
			//更新分配清单
			function update_alloc_details(rowNo, id) {
				//将更新按钮变为编辑按钮
				var update = document.getElementById("update_" + rowNo);
				update.id = "edit_" + rowNo;
				update.setAttribute("onClick", "edit_alloc_details(" + rowNo + ", " + id + ")");
				update.innerHTML = "编辑";

				var big = document.getElementById("input_big_" + rowNo).value;
				var small = document.getElementById("input_small_" + rowNo).value;
				var selected = document.getElementById("select_" + rowNo).selectedIndex;

				var status;
				if (selected == 0) {
					status = "等待回应";
				} else if (selected == 1) {
					status = "未制十联单";
				} else if (selected == 2) {
					status = "已制十联单";
				} else {
					status = "订舱成功";
				}
				//更新数据库中的记录
				makeBoxAllocFormService.updateAllocDetails(id, big, small, selected + 1);
				
				document.getElementById("big_" + rowNo).innerHTML = big;
				document.getElementById("small_" + rowNo).innerHTML = small;
				document.getElementById("status_" + rowNo).innerHTML = status;
			}
			//跳转到订舱页面
			function book_box(ADID) {
				makeBoxAllocFormService.setBookBoxParams(orderPlanID, ADID);
				window.open("十联单（一联）明细.htm", "_self");
			}
		</script>
		<title>缮制舱位分配清单</title>
</HEAD>

<BODY>

<font face="隶书" color="3656B9" ; style="font-size: 18px;">预配计划明细</font><br>
<img src="showAllOrg.files/line2.gif"><br>

<!-- 导航条事件 -->
<Script language=javascript>
function nextPage_2() {
  return;
}
function prevPage_2() {
  return;
}
function firstPage_2() {
  return;
}
function lastPage_2() {
  return;
}
//直接定位时调用
function locate_2(obj) 
{
  var tmpChar = window.event.keyCode;
  if (tmpChar == 13) 
  {
    var val = parseInt(obj.value);
    if (val>0 || val<1 || isNaN(val))  
    {
      alert("要查询的页面不存在: " + obj.value);
      obj.value=0;
      return false;
    }
    document.formStoreStartAudit.currentPage3.value= val;
    document.formStoreStartAudit.submit();
    return false;
  }
  else
  {
     if (tmpChar>47 && tmpChar<58) 
     {  
         return true;
     }  
     return false; 
  }  
}  
</script>


	<center>
			<!-- 预配计划明细 -->
			<div id="order_plan_details"></div>
			
			<!-- 舱位分配清单 -->
			<div id="box_alloc_form"></div>
	</center>
<!-- 导航条事件 -->
<Script language=javascript>
function nextPage_2() {
  return;
}
function prevPage_2() {
  return;
}
function firstPage_2() {
  return;
}
function lastPage_2() {
  return;
}
//直接定位时调用
function locate_2(obj) 
{
  var tmpChar = window.event.keyCode;
  if (tmpChar == 13) 
  {
    var val = parseInt(obj.value);
    if (val>0 || val<1 || isNaN(val))  
    {
      alert("要查询的页面不存在: " + obj.value);
      obj.value=0;
      return false;
    }
    document.formStoreStartAudit.currentPage3.value= val;
    document.formStoreStartAudit.submit();
    return false;
  }
  else
  {
     if (tmpChar>47 && tmpChar<58) 
     {  
         return true;
     }  
     return false; 
  }  
}  
</script>

</BODY>
</HTML>


